package com.xhh.nphm.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@TableName(value ="tm_sys_notice_log")
@Data
public class TmSysNoticeLog implements Serializable {
    @TableField(value = "nlogTd")
    private int nlogTd;
    @TableField(value = "userId")
    private Long userId;
    @TableField(value = "affId")
    private int affId;
    @TableField(value = "isDelFlag")
    @TableLogic
    private int isDelFlag;
    @TableField(value = "logTime")
    private Date logTime;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public TmSysNoticeLog() {}

    public TmSysNoticeLog( Long userId, int affId, Date logTime) {
        this.userId = userId;
        this.affId = affId;
        this.logTime = logTime;
    }

    public int getNlogTd() {
        return nlogTd;
    }

    public void setNlogTd(int nlogTd) {
        this.nlogTd = nlogTd;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public int getAffId() {
        return affId;
    }

    public void setAffId(int affId) {
        this.affId = affId;
    }

    public int getIsDelFlag() {
        return isDelFlag;
    }

    public void setIsDelFlag(int isDelFlag) {
        this.isDelFlag = isDelFlag;
    }

    public Date getLogTime() {
        return logTime;
    }

    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }

    @Override
    public String toString() {
        return "TmSysNoticeLog{" +
                "nlogTd=" + nlogTd +
                ", userId=" + userId +
                ", afficheId=" + affId +
                ", isDelFlag=" + isDelFlag +
                ", logTime=" + logTime +
                '}';
    }
}
